home *** CD-ROM | disk | FTP | other *** search
- /*----------------------------------------------------------
-
- AOCE Post Office Protocol (3)
- Personal Gateway
-
- written by Steven Falkenburg-- MacDTS
- ©1991 Apple Computer, Inc.
-
- ----------------------------------------------------------*/
-
- #pragma once
- #define __GW_NETWORK__
-
- OSErr InitRemoteNetStuff(void);
- OSErr CloseRemoteNetStuff(void);
-
- OSErr TCP_CreateStream(unsigned long *connID);
- OSErr TCP_ReleaseStream(unsigned long connID);
- OSErr TCP_CloseConnection(unsigned long connID,char timeout);
- OSErr TCP_ActiveOpen(unsigned long connID,unsigned long ipAddress,unsigned short ipPort,char timeout);
- OSErr TCP_Send(unsigned long connID,char *sendData,unsigned short sendLength,Boolean push,char timeout);
- OSErr TCP_Receive(unsigned long connID,Ptr buffer,unsigned short *bufLen,char timeout);
- OSErr TCP_GetMyIPAddress(unsigned long *ipAddress);
-
- OSErr TCP_ReadByte(unsigned long connID,unsigned char *byte,char timeout);
- OSErr TCP_FlushBytes(void);
-